package com.steam.xbcc.domain;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wt
 * @since 2022-10-04
 */
@TableName("t_blacklist")
public class Blacklist extends Model<Blacklist> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("blacklist_time")
    private Date blacklistTime = new Date();
    @TableField("user_id")
    private Long userId;
    private String ip;
    private String phone;
    private String cause;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getBlacklistTime() {
        return blacklistTime;
    }

    public void setBlacklistTime(Date blacklistTime) {
        this.blacklistTime = blacklistTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCause() {
        return cause;
    }

    public void setCause(String cause) {
        this.cause = cause;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Blacklist{" +
        ", id=" + id +
        ", blacklistTime=" + blacklistTime +
        ", userId=" + userId +
        ", ip=" + ip +
        ", phone=" + phone +
        ", cause=" + cause +
        "}";
    }
}
